package com.tqhh.meimei;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@MapperScan("com.tqhh.meimei.mapper")
@SpringBootApplication
public class MmApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(MmApplication.class, args);
        LoggerFactory.getLogger(MmApplication.class).info("Spring boot 项目初始化完成");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(MmApplication.class);
    }
}
